#!/bin/sh -x
# inside output root

# create dir
mkdir -p dump

# grab execution dir
EXEC_DIR="$(dirname "$(realpath "$0")")"

# dump main executable
"$EXEC_DIR"/objdump "-d" zephyr.elf dump/zephyr.elf.S
"$EXEC_DIR"/filter_process_assembly dump/zephyr.elf.S dump/zephyr.instr dump/zephyr.csr
